﻿@{
    Layout = null;
    bool isShowCondition = true;
    isShowCondition = !(Request["isShowCondition"] == "false");
}
<style>
.pageFormContent p,div,span{ float:none;}
</style>
<div class="pageContent">
    <div class="accordion">
        @if (isShowCondition)
        {
        <div class="accordionHeader">
            <h2>
                <span>icon</span>确认条件</h2>
        </div>
        <div class="accordionContent" style="height:350px">
            <div id="ConfirmSerch" style="overflow: hidden">
             @Html.Action("HighSeach", "Default", new { area = "CustomerInfo" })
            </div>
        </div>
        }
        <div class="accordionHeader">
            <h2>
                <span>icon</span>确认内容(发送数量：@Request["total"])</h2>
        </div>
        <div class="accordionContent pageFormContent" layouth="100">
         <p id="ConfirmTitle" style="width:100%; height:auto"></p>
         <p id="ConfirmFiles" style="width:100%; height:auto"></p>
         <p id="ConfirmContent" style="width:100%; height:auto"></p>
        </div>
    </div>
    <div class="formBar" id="HighSearchBar">
        <ul>
            <li>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="button" onclick="ConfirmSend()">
                            确认发送</button></div>
                </div>
            </li>
            <li>
                <div class="button">
                    <div class="buttonContent">
                        <button type="button" class="close" id="ConfirmClose">
                            取消</button></div>
                </div>
            </li>
        </ul>
    </div>
</div>
<script>
    $(function () {
        //$("#ConfirmSerch").html($("#SelectorHighSearch").html());
        //$("#SearchFormDIV").attr("style", "width:98%");
        $("#ConfirmSerch").find("#HighSearchBar").remove();
        $("#ConfirmSerch").find(".SearchBarControl").remove();

        var form = '@Request["form"]';
        if (form == "SendEmailForm") {
            $("#ConfirmTitle").show();
            $("#ConfirmFiles").show();
            $("#ConfirmTitle").html("<label>标题：</label>" + $("#" + form + " #Title").val());
            $("#ConfirmFiles").html("<div class='divider' /><label>附件：</label>" + $("#" + form + " #uploadedFile").text());
            $("#ConfirmContent").html("<div class='divider' /><label>内容:</label><div class='divider' /><div style='clead:both'>" + $("#" + form + " #Remark").val() + "</div>");

        }
        else {
            $("#ConfirmTitle").hide();
            $("#ConfirmFiles").hide();
            $("#ConfirmContent").html($("#" + form + " #Remark").val());
        }

    });

    function ConfirmSend() {
        $('#@Request["form"]').submit();
        $("#ConfirmClose").click();
    }    
</script>
